#pragma once
#include "afxwin.h"
#include "afxcmn.h"
#include "QuestionEditDialog.h"

#include "Core/QuestionAndAnswer.h"

// CEditChoiceDlg dialog

class CEditChoiceDlg : public CQuestionEditDialog
{
    DECLARE_DYNAMIC(CEditChoiceDlg)

public:
    CEditChoiceDlg(CWnd* pParent = NULL);   // standard constructor
    virtual ~CEditChoiceDlg();

// Dialog Data
    enum { IDD = IDD_EditChoiceQuestion };

protected:
    CEdit m_editTitle;
    CListCtrl m_listOptions;
    CEdit m_editOption;

protected:
    virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

    DECLARE_MESSAGE_MAP()

    void MoveOption(int nItem, int nItemTarget);

protected:
    virtual void OnOK();
public:
    afx_msg void OnBnClickedButtonAdd();
    afx_msg void OnBnClickedButtonDelete();
    afx_msg void OnBnClickedButtonSetAnswer();
    virtual BOOL OnInitDialog();
    afx_msg void OnNMClickListOptions(NMHDR *pNMHDR, LRESULT *pResult);
    afx_msg void OnNMDblclkListOptions(NMHDR *pNMHDR, LRESULT *pResult);
    afx_msg void OnBnClickedButtonMoveUp();
    afx_msg void OnBnClickedButtonMoveDown();
    afx_msg void OnEnChangeEditEditOption();
    virtual BOOL PreTranslateMessage(MSG* pMsg);
};
